/**
 * 
 */
package com.jjt.kiki.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @author jiangjintai
 *
 */
public interface BaseService <T,B extends Serializable>{
	T findById(B id);

	T save(T entity);

	void delete(T entity);
	
	List<T> findAll();
	
	void deleteById(B id);
	
	Page<T> findAll(Pageable pageable);
}
